package t2.client.events;

import com.google.gwt.event.shared.GwtEvent;

/* Reference http://alextretyakov.blogspot.com/2011/11/gwt-event-bus-basics.html */
public class XBeeInitEvent extends GwtEvent<XBeeInitEventHandler> {

    public static Type<XBeeInitEventHandler> TYPE = new Type<XBeeInitEventHandler>();

    private String port;


    public XBeeInitEvent(String port) {
        setPort(port);
    }


    @Override
    public com.google.gwt.event.shared.GwtEvent.Type<XBeeInitEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(XBeeInitEventHandler handler) {
        handler.checkStatus(this);
    }


    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
